﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Microsoft.AzureAD.XPrize.TwittOracle.FeatureExtraction
{
    internal class FeatureExtractor
    {
        private static int screenNameIndex = 0;
        private static int followersIndex = 3;
        private static int followingIndex = 4;
        private static int tweetCountIndex = 5;

        public static TwitterAccount Get(string[] record)
        {
            var account = new TwitterAccount();
            account.ScreenName = record[screenNameIndex];
            account.Followers = int.Parse(record[followersIndex]);
            account.Following = int.Parse(record[followingIndex]);
            account.PowerOfWord = 0.0;
            account.ProfileCompletionFactor = 0.0;

            return account;
        }
    }
}
